
define(['config/appregister'],function(app){
    app.directive("date",function(){
        return {
            templateUrl:"app/business/Companyinfor/directive/template/date.html",
            link:function(scope,element,attrs){
                var dateRange1 = new pickerDateRange('date1', {
                    isTodayValid : true,
                    startDate : '2016-10-08',
                    endDate : '2016-11-10',
                    needCompare : false,
                    defaultText : ' 至 ',
                  /*  autoSubmit : true,*/
                    inputTrigger : 'input_trigger1',
                    maxValidDate:"",
                    theme : 'ta',
                    shortOpr: false,
                    success : function(obj) {
                        $("#dCon2").html('开始时间 : ' + obj.startDate + '<br/>结束时间 : ' + obj.endDate);
                    }
                   
                });
					 scope.$emit('123', obj.startDate,obj.endDateobj.endDate);
            }
        }
    });
});

